package com.itrus.raapi.result;

import com.itrus.raapi.dictionary.ICADictionary;

public abstract class OperationResult
{
  private String baseMessage = "";
  private String extMessage = "";
  private long returnCode = 0L;
  boolean success = false;

  public String getBaseMessage()
  {
    return this.baseMessage;
  }

  public String getExtMessage()
  {
    return this.extMessage;
  }

  public String getHexCode()
  {
    return new ICADictionary().getHexCode(this.returnCode);
  }

  public String getMessage()
  {
    StringBuilder localStringBuilder = new StringBuilder("信息码=[0x").append(getHexCode()).append("]，信息=[").append(this.baseMessage).append("]");
    if ("".equals(this.extMessage));
    for (String str = ""; ; str = "[" + this.extMessage + "]")
      return str;
  }

  public long getReturnCode()
  {
    return this.returnCode;
  }

  public boolean isSuccess()
  {
    if (this.returnCode == 0L)
      return true;
    return this.success;
  }

  public void setExtMessage(String paramString)
  {
    this.extMessage = paramString;
  }

  public void setReturnCode(long paramLong)
  {
    this.returnCode = paramLong;
    this.baseMessage = new ICADictionary().getMessage(paramLong);
  }

  public void setReturnCode(String paramString)
  {
    ICADictionary localICADictionary = new ICADictionary();
    this.returnCode = localICADictionary.getLongCode(paramString);
    this.baseMessage = localICADictionary.getMessage(this.returnCode);
  }

  public void setSuccess(boolean paramBoolean)
  {
    this.success = paramBoolean;
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.itrus.raapi.result.OperationResult
 * JD-Core Version:    0.6.2
 */